/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.rs.domain.bo.ManufactureRecordBO;
import com.xy.biz.rs.domain.query.ManufactureRecordQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-4-16
 */
public interface ManufactureRecordManager {

	/**
	 * 保存
	 *
	 * @param manufactureRecordBO
	 */
	int saveManufactureRecord(ManufactureRecordBO manufactureRecordBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllManufactureRecord(Collection<ManufactureRecordBO> collection);

	/**
	 * 更新
	 *
	 * @param manufactureRecordBO
	 */
	int updateManufactureRecord(ManufactureRecordBO manufactureRecordBO);

	/**
	 * 删除
	 *
	 * @param manufactureRecordId
	 */
	int deleteManufactureRecord(Long manufactureRecordId);

	/**
	 * 查找一个
	 *
	 * @param manufactureRecordId
	 * @return
	 */
	ManufactureRecordBO getManufactureRecord(Long manufactureRecordId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ManufactureRecordBO> listManufactureRecordById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ManufactureRecordBO> listManufactureRecord(ManufactureRecordQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countManufactureRecord(ManufactureRecordQuery query);

}
